import request from '@/utils/request'



// 列表
export function orderList(data) {
  return request({
    url: '/washing/order',
    method: 'post',
    data: data
  })
}

// 客户取消
export function cancelOrder(data) {
  return request({
    url: '/washing/order/cancel/audit?sn='+data.sn,
    method: 'post',
    data: data
  })
}

// 分配订单
export function assignOrder(data) {
  return request({
    url: `/washing/order/assign?id=${data.id}&workerId=${data.workerId}`,
    method: 'post',
    data: data
  })
}

